<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover" />
    <title>奖励惩罚</title>
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/weui.min.css')}}">
    <link rel="stylesheet" href="{{asset('/addons/jquery-weui-build/css/jquery-weui.css')}}">
    <link rel="stylesheet" href="/css/system/front-iconfont.css?v=2018121301">
    @if($skinid == 3)
        <link rel="stylesheet" href="/css/system/common.css?v={{time()}}">
        <link rel="stylesheet" href="/css/system/up-rewards1.css?v={{time()}}">
    @elseif($skinid == 1)
        <link rel="stylesheet" href="/css/theme-blue/system/common.css?v={{time()}}">
        <link rel="stylesheet" href="/css/theme-blue/system/up-rewards1.css?v={{time()}}">
    @elseif($skinid == 2)
        <link rel="stylesheet" href="/css/theme-pink/system/iconfont-pink.css">
        <link rel="stylesheet" href="/css/theme-pink/system/common.css?v={{time()}}">
        <link rel="stylesheet" href="/css/theme-pink/system/up-rewards1.css?v={{time()}}">
    @endif
</head>
<body ontouchstart>
<div class="award-pub">
    {{--头部--}}
    <div class="award-top">
        <a class="award-top-lecon sure-btn active" href="javascript:;">
            <div class="award-top-left"></div>
            <span>审核</span>
            @if($count > 0)
            <span style="color: red">({{$count}})</span>
            @endif
        </a>
        <div>
            奖励惩罚
        </div>
        <div class="award-top-lecon">
            <div class="add-tip"></div>
            <span class="award-do">发起</span>
        </div>
    </div>
    <div class="min-con">
        {{--tabbar--}}
        <div class="header-top">
            <div class="weui-flex">
                <div class="weui-flex__item pull pull-up " onclick="window.location.href='{{url('/user/reward/reward')}}'">
                    <p class="">
                        奖励
                    </p>
                </div>
                <div class="weui-flex__item pull pull-up2" style="margin-left: 2px;" onclick="window.location.href='{{url('/user/reward/reward?id=1')}}'">
                    <p class="">
                        惩罚
                    </p>
                </div>
                <div class="weui-flex__item pull pull-up3 active" style="margin-left: 2px;" onclick="window.location.href='{{url('/user/reward/shenpi')}}'">
                    <p class="">
                        待办事项
                    </p>
                </div>
            </div>
            {{--<div class="weui-search-bar" id="searchBar">--}}
              {{--<form class="weui-search-bar__form">--}}
                {{--<div class="weui-search-bar__box">--}}
                  {{--<i class="weui-icon-search"></i>--}}
                  {{--<input type="search" class="weui-search-bar__input" id="searchInput" placeholder="搜索" required="">--}}
                  {{--<a href="javascript:" class="weui-icon-clear" id="searchClear"></a>--}}
                {{--</div>--}}
                {{--<label class="weui-search-bar__label" id="searchText">--}}
                  {{--<i class="weui-icon-search"></i>--}}
                  {{--<span>搜索</span>--}}
                {{--</label>--}}
              {{--</form>--}}
              {{--<a href="javascript:" class="weui-search-bar__cancel-btn" id="searchCancel">取消</a>--}}
            {{--</div>--}}
            {{--@if($skinid == 2)--}}
                {{--<img class="add-tip" src="/img-theme-pink/add.png">--}}
            {{--@elseif($skinid == 1)--}}
                {{--<img class="add-tip" src="/img-theme-blue/add.png">--}}
            {{--@elseif($skinid == 3)--}}
                {{--<img class="add-tip" src="/img/add.png">--}}
            {{--@endif--}}
            {{--<i class="add-tip icon iconfont icon-hao"></i>--}}
            {{--@if($user->is_leader == 1)--}}
                {{--<div class="weui-flex flex-search">--}}
                    {{--<div class="weui-flex__item" style="text-align: center">--}}

                        {{--</a>--}}
                    {{--</div>--}}
                {{--</div>--}}
            {{--@endif--}}
        </div>
        <ul>
            {{--@foreach($relate as $re)--}}
                    {{--<li>--}}
                        {{--<img class="pull-left" @if($re->kind==1) src="/img/reward{{$skinid}}.png" @else src="{{asset('/img/punish.png')}}" @endif>--}}
                        {{--<a href="javascript:void(0)">--}}
                            {{--<div class="sec-block">--}}
                                {{--<div class="up">--}}
                                    {{--<h3>@if($re->kind==1)提出奖励@else提出惩罚@endif<p class="p-time">{{$re->created_at->format('Ymd')}}</p></h3>--}}
                                {{--</div>--}}
                                {{--<div class="down">--}}
                                    {{--<p class="title-p">{{getUserName($re->from_user_id)}}发出一条对{{getUserName($re->to_user_id)}}的@if($re->kind==1)奖励@else惩罚@endif</p>--}}
                                    {{--<p>@if($re->kind==1)奖励@else惩罚@endif级别：{{$re->grade}}</p>--}}
                                    {{--@if($re->is_effective == 1)--}}
                                        {{--<i class="pass icon iconfont icon-queren"></i>--}}
                                    {{--@elseif($re->is_effective == 2)--}}
                                        {{--<i class="error icon iconfont icon-chahao"></i>--}}
                                    {{--@else--}}
                                        {{--<i class="wait icon iconfont icon-bolangnengguancedian"></i>--}}
                                    {{--@endif--}}

                                {{--</div>--}}
                            {{--</div>--}}
                        {{--</a>--}}
                        {{--<ul class="hidden">--}}
                            {{--@foreach($re->log as $k=>$v)--}}
                                {{--@if($k%2 == 0)--}}
                                    {{--<li class="clearfloat">--}}
                                        {{--<div class="right-div">--}}
                                            {{--<span class="circle-sp"></span>--}}
                                            {{--<p>{!! $v->des !!}</p>--}}
                                        {{--</div>--}}
                                    {{--</li>--}}
                                {{--@else--}}
                                    {{--<li class="clearfloat">--}}
                                        {{--<div class="left-div">--}}
                                            {{--<p>{!! $v->des !!}</p>--}}
                                            {{--<span class="circle-sp"></span>--}}
                                        {{--</div>--}}
                                    {{--</li>--}}
                                {{--@endif--}}
                            {{--@endforeach--}}
                        {{--</ul>--}}
                    {{--</li>--}}
            {{--@endforeach--}}
            @foreach($relate as $re)
                @if($re->is_notify == 1)
                    <li class="wating-list1">
                        <div class="wating-img">
                            <img class="pull-left" src="{{asset('/img/punish.png')}}">
                        </div>
                        <div class="wating-des">
                            <a href="javascript:void(0)">
                                <div class="sec-block">
                                    <div class="up">
                                        <div class="up-tit">待办事项-修改提醒</div>
                                        <div class="p-time">{{$re->date_param}}</div>
                                    </div>
                                    <div class="down">
                                        <div class="title-p">明细：{{$re->description}}</div>
                                    </div>
                                </div>
                            </a>
                        </div>

                        <ul class="hidden xiugai-content" >
                            <div class="popup">
                                <h3>待办事项-修改提醒</h3>
                                <i class="weui-icon-cancel"></i>
                                </div>
                            <div class="des-tit des-t0">
                                <div class="des-tit1">
                                    <div class="des-titcon">{{$kind_array[$re->kind-1]}}</div>
                                    <div class="des-titcon1">{{date('Y-m-d',strtotime($re->date_param))}}</div>
                                    </div>
                                <p class="des-titcon2">明细：{{$re->description}}</p>
                                </div>
                            <div class="des-mid">改为</div>
                            @if($re->is_empty == 1)
                                <div class="des-tit des-t1">
                                    <div class="des-tit1">
                                        <div class="des-titcon">考勤管理员已删除</div>
                                        <div class="des-titcon1">{{$re->created_at->format('Y-m-d')}}</div>
                                    </div>
                                    <p class="des-titcon2"></p>
                                </div>
                            @else
                                <div class="des-tit des-t1">
                                    <div class="des-tit1">
                                        <div class="des-titcon">{{$kind_array[$re->kind-1]}}{{$re->new_count}}天</div>
                                        <div class="des-titcon1">{{$re->created_at->format('Y-m-d')}}</div>
                                    </div>
                                    <p class="des-titcon2">明细：{{$re->description}}</p>
                                </div>
                            @endif

                        </ul>
                    </li>
                @else
                    <li class="wating-list">
                        <div class="wating-img">
                            <img class="pull-left" src="/img/waiting.png">
                        </div>
                        <div class="wating-des">
                            <a href="javascript:void(0)">
                                <div class="sec-block">
                                    <div class="up">
                                        <div class="up-tit">
                                            待办事项-
                                            <span class="wating-reason">{{$kind_array[$re->kind-1]}}</span>
                                        </div>
                                        <div class="p-time">{{$re->date_param}}</div>
                                    </div>
                                    <div class="down">
                                        <div class="title-p">明细：{{$re->description}}</div>
                                        @if($re->status == 0)
                                            <i class="wait icon iconfont icon-bolangnengguancedian"></i>
                                        @elseif($re->status == 1)
                                            <i class="pass icon iconfont icon-queren"></i>
                                        @else
                                            <i class="error icon iconfont icon-chahao"></i>
                                        @endif
                                    </div>
                                </div>
                            </a>
                        </div>

                        <ul class="hidden">
                            @foreach($re->log as $k=>$v)
                                @if($k%2 == 0)
                                    <li class="clearfloat">
                                        <div class="left-div">
                                            <span class="circle-sp"></span>
                                            <p>{!! $v->des !!}<span class="time-span">{{$v->created_at->format('Y-m-d H:i')}}</span></p>
                                        </div>
                                    </li>
                                @else
                                    <li class="clearfloat">
                                        <div class="right-div">
                                            <p>{!! $v->des !!}<span class="time-span">{{$v->created_at->format('Y-m-d H:i')}}</span></p>
                                            <span class="circle-sp"></span>
                                        </div>
                                    </li>
                                @endif
                            @endforeach
                            {{--<li class="clearfloat">
                                <div class="left-div">
                                    <span class="circle-sp"></span>
                                    <p>提出待办事项申请<span class="time-span">2018-04-18 17:25</span></p>
                                </div>
                            </li>
                            <li class="clearfloat">
                                <div class="right-div">
                                    <p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>
                                    <span class="circle-sp"></span>
                                </div>
                            </li>--}}
                        </ul>
                    </li>
                @endif
            @endforeach
            {{--<li class="wating-list">
                <div class="wating-img">
                    <img class="pull-left" src="/img/waiting.png">
                </div>
                <div class="wating-des">
                    <a href="javascript:void(0)">
                        <div class="sec-block">
                            <div class="up">
                                <div class="up-tit">待办事项-<span class="wating-reason">出差</span></div>
                                <div class="p-time">20181130</div>
                            </div>
                            <div class="down">
                                <div class="title-p">明细：宴请费用2000，差旅费800</div>
                                <i class="pass icon iconfont icon-queren"></i>
                            </div>
                        </div>
                    </a>
                </div>

                <ul class="hidden">
                    <li class="clearfloat">
                        <div class="left-div">
                            <span class="circle-sp"></span>
                            <p>提出待办事项申请<span class="time-span">2018-04-18 17:25</span></p>
                        </div>
                    </li>
                    <li class="clearfloat">
                        <div class="right-div">
                            <p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>
                            <span class="circle-sp"></span>
                        </div>
                    </li>

                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--<p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>组长2审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长3审核通过<span class="time-span">2018-04-18 17:25</span></p><span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>惩罚通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                </ul>
            </li>
            <li class="wating-list">
                <div class="wating-img">
                    <img class="pull-left" src="/img/waiting.png">
                </div>
                <div class="wating-des">
                    <a href="javascript:void(0)">
                        <div class="sec-block">
                            <div class="up">
                                <div class="up-tit">待办事项-<span class="wating-reason">公假</span></div>
                                <div class="p-time">20181130</div>
                            </div>
                            <div class="down">
                                <div class="title-p">明细：宴请费用2000，差旅费800</div>
                                <i class="wait icon iconfont icon-bolangnengguancedian"></i>
                            </div>
                        </div>
                    </a>
                </div>

                <ul class="hidden">
                    <li class="clearfloat">
                        <div class="left-div">
                            <span class="circle-sp"></span>
                            <p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>
                        </div>
                    </li>
                    <li class="clearfloat">
                        <div class="right-div">
                            <p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>
                            <span class="circle-sp"></span>
                        </div>
                    </li>

                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--<p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>组长2审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长3审核通过<span class="time-span">2018-04-18 17:25</span></p><span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>惩罚通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                </ul>
            </li>
            <li class="wating-list">
                <div class="wating-img">
                    <img class="pull-left" src="/img/waiting.png">
                </div>
                <div class="wating-des">
                    <a href="javascript:void(0)">
                        <div class="sec-block">
                            <div class="up">
                                <div class="up-tit">待办事项-<span class="wating-reason">病假</span></div>
                                <div class="p-time">20181130</div>
                            </div>
                            <div class="down">
                                <div class="title-p">明细：宴请费用2000，差旅费800</div>
                                <i class="error icon iconfont icon-chahao"></i>
                            </div>
                        </div>
                    </a>
                </div>

                <ul class="hidden">
                    <li class="clearfloat">
                        <div class="left-div">
                            <span class="circle-sp"></span>
                            <p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>
                        </div>
                    </li>
                    <li class="clearfloat">
                        <div class="right-div">
                            <p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>
                            <span class="circle-sp"></span>
                        </div>
                    </li>

                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--<p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>组长2审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长3审核通过<span class="time-span">2018-04-18 17:25</span></p><span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>惩罚通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                </ul>
            </li>
            <li class="wating-list1">
                <div class="wating-img">
                    <img class="pull-left" src="{{asset('/img/punish.png')}}">
                </div>
                <div class="wating-des">
                    <a href="javascript:void(0)">
                        <div class="sec-block">
                            <div class="up">
                                <div class="up-tit">待办事项-修改提醒</div>
                                <div class="p-time">20181130</div>
                            </div>
                            <div class="down">
                                <div class="title-p">明细：宴请费用2000，差旅费800</div>
                            </div>
                        </div>
                    </a>
                </div>

                <ul class="hidden">
                    <li class="clearfloat">
                        <div class="left-div">
                            <span class="circle-sp"></span>
                            <p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>
                        </div>
                    </li>
                    <li class="clearfloat">
                        <div class="right-div">
                            <p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>
                            <span class="circle-sp"></span>
                        </div>
                    </li>

                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--<p>提出惩罚申请<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长1审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--<span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>组长2审核通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<p>组长3审核通过<span class="time-span">2018-04-18 17:25</span></p><span class="circle-sp"></span>--}}{{--
                    --}}{{--</li>--}}{{--
                    --}}{{--<li>--}}{{--
                    --}}{{--<span class="circle-sp"></span><p>惩罚通过<span class="time-span">2018-04-18 17:25</span></p>--}}{{--
                    --}}{{--</li>--}}{{--
                </ul>
            </li>--}}
        </ul>
    </div>
</div>
<div class="shadow-hidden"></div>
<div class="award-hidden">
    <div class="popup"><h3>提出待办事项申请</h3><i class="weui-icon-cancel"></i></div>
    <form onsubmit="return false;">
        <div class="weui-cell padd1">
            <div class="weui-cell__hd"><label for="" class="weui-label">时间：</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" type="date" value="" name="date">
            </div>
        </div>
        <div class="weui-cell weui-cell_select padd2">
            <div class="weui-cell__hd">
                <label for="" class="weui-label">类型：</label>
            </div>
            <div class="weui-cell__bd">
                <select class="weui-select" name="kind">
                    <option selected="" value="1">出差</option>
                    <option value="2">事假</option>
                    <option value="3">病假</option>
                    <option value="4">年假</option>
                    <option value="5">婚假</option>
                    <option value="6">其他</option>
                </select>
            </div>
        </div>
        <div class="weui-cell padd3">
            <div class="weui-cell__hd heigh3"><label for="" class="weui-label">详情：</label></div>
            <div class="weui-cell__bd">
                <textarea name="des" placeholder="请输入文字"></textarea>
            </div>
        </div>



        {{--<select class="" name="tuid">--}}
            {{--@foreach($users as $u)--}}
                {{--<option value="{{$u->id}}">{{$u->qw_name}}</option>--}}
            {{--@endforeach--}}
        {{--</select>--}}
        {{--<select class="" name="class">--}}
            {{--<option value="高级">高级</option>--}}
            {{--<option value="中级">中级</option>--}}
            {{--<option value="低级">低级</option>--}}
        {{--</select>--}}
        <button class="sub-mit kh_submit">提交</button>
        {!! csrf_field() !!}
    </form>
</div>
<div class="detail-pub">
</div>
<div class="fix-message">
    @if($skinid == 3)
        <img src="/img-theme-pink/que-3.png">
    @elseif($skinid == 1)
        <img src="/img-theme-pink/que-2.png">
    @elseif($skinid == 2)
        <img src="/img-theme-pink/que-1.png">
    @endif
</div>
 @include('frontuser.caidan')

<script src="{{asset('/kaohe/js/jquery-2.1.4.min.js')}}"></script>
<script src="{{asset('/addons/jquery-weui-build/js/fastclick.js')}}"></script>
<script>
    $(function() {
        document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
        FastClick.attach(document.body);
    });
</script>
<script src="{{asset('/addons/jquery-weui-build/js/jquery-weui.min.js')}}"></script>
<script>
    $(document).ready(function () {
        $('.fix-message img').click(function () {
            $.alert("员工可发起待办事项申请，发起后由上一级审批，给予通过或拒绝的的审批意见，审批通过的待办事项在考勤板块可查看。", "提示");
        })
        $('.kaohe-item').click(function () {
            $('.front-show-hidden').toggle();
        })
        $('.set-btn').click(function () {
            $('.set-hidden').toggle();
        })
        $('.add-tip').click(function () {
            $('.award-hidden').css('display', 'block');
            $('.shadow-hidden').css('display', 'block');
        })
        $('.award-hidden .popup i').click(function () {
            $('.award-hidden').css('display', 'none');
            $('.shadow-hidden').css('display', 'none');
        })
        $('.award-hidden .sub-mit').click(function () {
            $('.award-hidden').css('display', 'none');
            $('.shadow-hidden').css('display', 'none');
        })
        $('.award-hidden form a').each(function () {
            $(this).click(function () {
                $(this).siblings().removeClass('active')
                $(this).addClass('active');

            })
        })

//        待办事项弹窗
        $('.min-con .wating-list a').click(function () {
            $('.detail-pub').css('display', 'block');
            $('.shadow-hidden').css('display', 'block');
            $('.detail-pub').html('<div class="popup">' +
                    '<h3>申请详情</h3>'
                    + '<i class="weui-icon-cancel"></i>'
                    + '</div>'
                    + '<div class="des-tit">'
                    + '<div class="des-tit1">'
                    + '<div class="des-titcon">' + $(this).find('.wating-reason').text() + '</div>'
                    + '<div class="des-titcon1">' + $(this).find('.p-time').text() + '</div>'
                    + '</div>'
                    + '<p class="des-titcon2">' + $(this).find('.title-p').text() + '</p>'
                    + '</div>'
                    + '<ul>'
                    + $(this).parents().next().html()
                    + '</ul>');
            $('.detail-pub .popup i').click(function () {
                $('.detail-pub').css('display', 'none');
                $('.shadow-hidden').css('display', 'none');
            })
        });

//        修改提醒弹窗
        $('.min-con .wating-list1 a').click(function () {
            $('.detail-pub').css('display', 'block');
            $('.shadow-hidden').css('display', 'block');
            /*$('.detail-pub').html('<div class="popup">' +
                    '<h3>待办事项-修改提醒</h3>'
                    + '<i class="weui-icon-cancel"></i>'
                    + '</div>'
                    + '<div class="des-tit des-t0">'
                    + '<div class="des-tit1">'
                    + '<div class="des-titcon">出差</div>'
                    + '<div class="des-titcon1">2021-02-24</div>'
                    + '</div>'
                    + '<p class="des-titcon2">明细：宴请费用2000，差旅费800</p>'
                    + '</div>'
                    + '<div class="des-mid">改为</div>'
                    + '<div class="des-tit des-t1">'
                    + '<div class="des-tit1">'
                    + '<div class="des-titcon">事假</div>'
                    + '<div class="des-titcon1">2021-02-25</div>'
                    + '</div>'
                    + '<p class="des-titcon2">明细：临时变动</p>'
                    + '</div>');*/
            $('.detail-pub').html($(this).parent().parent().find('.xiugai-content').html());
            $('.detail-pub .popup i').click(function () {
                $('.detail-pub').css('display', 'none');
                $('.shadow-hidden').css('display', 'none');
            })
        });

//        发起弹窗表单提交
        $('.kh_submit').click(function () {
            console.log(1111)
            var date = $('input[name=date]').val();
            var toke = $('input[name=_token]').val();
            //var uid = $('select[name=tuid]').val();
            var reason = $('textarea[name=des]').val();
            var clas = $('select[name=kind]').val();
            $.ajax({
                'url': '/user/reward/add-shenpi?_token=' + toke,
                'type': 'POST',
                'data': {'des': reason, 'kind': clas,'date':date},
                error: function (request) {
                    console.log("error");
                },
                success: function (data) {
                    if (data.status == 'success') {
                        $.toast("提交成功");
                        setTimeout(function () {
                            window.location.reload();
                        }, 1000);
                    } else {
                        $.toast(data.msg, 'forbidden');
                    }
                }
            })
        });

        $('.no-access').click(function () {
            $.toast("您不是组长，无权查看", "text");
        });


        $(document).on('click','.award-top-lecon.sure-btn',function(){
            var toke = $('input[name=_token]').val();
            $.ajax({
                type: 'post',
                url: "/user/reward/check-verify-list?" +"_token="+toke,
                data: '',
                dataType: 'json',
                success: function (data) {
                    if (data.status == 'success') {
                        window.location.href='/user/reward/verify-list';
                    } else {
                        $.toast(data.msg,'forbidden');
                    }
                },
                error: function () {
                    $.toptip('网络异常请重试','warning');
                }
            });
        });

//    头部奖励、惩罚、待办事项tabbar
        $('.pull').click(function () {
            $(this).addClass('active');
            $(this).siblings().removeClass('active');
        })
    })
</script>
</body>
</html>